#!/bin/bash
#=======================
# Author : Ali Moradzade
# Created: 2022/01/03
#=======================

# redirecting output to different locations

exec 2>testerror

echo "This is the start of the script"
echo "now redirecting all output to another location"

exec 1>testout

echo "This output should go to the testout file"

echo "but this should go to the testerror file" >&2
